package com.bjpowernode.crm.workbench.service.impl;

import com.bjpowernode.crm.workbench.domain.Clue;
import com.bjpowernode.crm.workbench.domain.ClueRemark;
import com.bjpowernode.crm.workbench.mapper.ClueRemarkMapper;
import com.bjpowernode.crm.workbench.service.ClueRemarkService;
import com.bjpowernode.crm.workbench.service.ClueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName : ClueRemarkServiceImpl
 * @Author : 司猫子
 * @Date: 2021/1/9 15:22
 */
@Service
public class ClueRemarkServiceImpl implements ClueRemarkService {
    @Autowired
    private ClueRemarkMapper clueRemarkMapper;


    public int deleteByPrimaryKey(String id) {
        return clueRemarkMapper.deleteByPrimaryKey(id);
    }

    public int insert(ClueRemark record) {
        return clueRemarkMapper.insert(record);
    }

    public int insertSelective(ClueRemark record) {
        return clueRemarkMapper.insertSelective(record);
    }

    public ClueRemark selectByPrimaryKey(String id) {
        return clueRemarkMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(ClueRemark record) {
        return clueRemarkMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(ClueRemark record) {
        return clueRemarkMapper.updateByPrimaryKey(record);
    }

    public List<ClueRemark> selectClueRemarkForDetailByClueId(String clueId) {
        return clueRemarkMapper.selectClueRemarkForDetailByClueId(clueId);
    }

    public List<ClueRemark> selectClueRemarkByClueId(String clueId) {
        return clueRemarkMapper.selectClueRemarkByClueId(clueId);
    }

    public int deleteClueRemarkByClueId(String clueId) {
        return clueRemarkMapper.deleteClueRemarkByClueId(clueId);
    }
}
